kfraser@localhost.localdomain [Thu, 5 Oct 2006 15:05:12 +0000 (16:05 +0100)]
[NET] front: Fix size of grant_rx_ref[]. It should use the RX ring
size, rather than the TX ring size.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Christian Limpach [Thu, 5 Oct 2006 13:53:29 +0000 (14:53 +0100)]
[HVM/vncserver] Implement a 'vnclisten' option to limit the interface
that the VNC server from qemu listens on.
Defaults to only listen on 127.0.0.1
The old behaviour (listen on all interfaces) can be restored, by
- changing the system-wide default in /etc/xen/xend-config.sxp by adding:
(vnc-listen '0.0.0.0')
- changing individual domain config files by adding:
vnclisten="0.0.0.0"
Also allows specifying the hostname associated with an interface to limit
to that interface.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Ian Campbell [Thu, 5 Oct 2006 13:07:57 +0000 (14:07 +0100)]
[NET] front: Include linux/moduleparam.h since we use module_param_*
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 11:08:08 +0000 (12:08 +0100)]
[MBOOTPACK] Fix building mbootpack on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
jchesterfield@dhcp92.uk.xensource.com [Thu, 5 Oct 2006 09:55:13 +0000 (10:55 +0100)]
[BLKTAP] Blktapctrl: Add asynchronous watch on dom0 name entry for blktapctrl on startup. This patch cleans up the synchronisation issues between blktapctrl and xend at initialisation if the Dom0 entries have not yet been populated.
Signed-off-by: Julian Chesterfield <julian@xensource.com>
Ian Campbell [Thu, 5 Oct 2006 09:09:25 +0000 (10:09 +0100)]
[NET] front: If the kernel does not include GSO then look for TSO.
This allows us to take advantage of TSO when running as PV-on-HVM on
older kernels.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Thu, 5 Oct 2006 09:09:20 +0000 (10:09 +0100)]
[NET] front: Invert the test for a kernel with GSO support.
This simplifies a subsequent patch.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 5 Oct 2006 08:30:07 +0000 (09:30 +0100)]
[LIBXC] Fix ptrace memory-mapping code to map pagetables read-only.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 18:00:11 +0000 (19:00 +0100)]
Remove redundant '&' before array name in __RING_SIZE macro.
Signed-off-by: Richard Miller <9xen@hamnavoe.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 17:55:16 +0000 (18:55 +0100)]
[LINUX] Don't bother to write a 5-bit value to a 2-bit field.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 4 Oct 2006 15:12:35 +0000 (16:12 +0100)]
[NET] back: Disable packet queuing when a client has no receive buffers.
This turns out to be dangerous as packets can be queued indefinitely,
introducing resource dependencies between guests (if the queued
packets originate from another virtual machine). For example, this
can prevent interfaces from being torn down and hence defunct
virtual machines from being destroyed.
The queuing functionality is retained as a module option, but a
warning is printed if it is enabled. It is not intended for general use!
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:43:45 +0000 (09:43 +0100)]
[IOEMU] When vncunused is specified, allocate a port from 5900
rather than 5898.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:42:41 +0000 (09:42 +0100)]
[XEND] If 'vncused' is set, it won't specify an explicit display num to QEMU.
In the current xen-unstable.hg tree tough, XenD will always pass an
explicit '-vnc <display num>' parameter to qemu-dm, regardless of
whether 'vncunused' is set. So the 'vncunused' bit only takes effect
if the explicitly passed display already has something bound to it.
Consider what happens when the host machine has been up for a while -
the Domain ID's start getting very high. This plays havoc with
firewalls - for example an admin may know that only 10 domains will
ever be running at any time, so they should be able to simply open up
ports 5900 -> 5910.
The correct behaviour should be:
- If 'vncdisplay' is set, use that explicit display
- If 'vncunused' is set non-zero, allocate first port about 5900
- Allocate fixed port based on domain-ID
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:32:01 +0000 (09:32 +0100)]
[HVMLOADER] Fix SMBIOS table code. One of the string lengths is incorrectly computed.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 4 Oct 2006 08:10:17 +0000 (09:10 +0100)]
[XEN] Never crash machine on int3 traps.
Do not enter debugger on dom0 shutdown unless dom0 crashed.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 3 Oct 2006 10:39:22 +0000 (11:39 +0100)]
[NET] Make MAX_SKBUFF_ORDER page-size independent.
Original patch from Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 3 Oct 2006 10:33:37 +0000 (11:33 +0100)]
[IA64] Fix implicit declaration of initialize_keytable().
Signed-off-by: Aron Griffis <aron@hp.com>
Alastair Tse [Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)]
[XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Alastair Tse [Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)]
[XM] Fix missing security check in block-attach
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_
ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=
ad22c711ccb7>.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Mon, 2 Oct 2006 17:04:56 +0000 (18:04 +0100)]
[HVMLOADER] Clean up SMBIOS table-length computations.
It's easier and less prone to error not to attempt the
length computation up front.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 2 Oct 2006 15:12:41 +0000 (16:12 +0100)]
[NET] front: Allow copying receive path to be selected by user at
module load time.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Mon, 2 Oct 2006 12:45:44 +0000 (13:45 +0100)]
[XEN][HVM] Fix a bug which could lead to the guest locking up if it
tried to a backwards memcpy across a page boundary in an MMIO region.
This should fix the problems some people have been reporting running
vim.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:35:02 +0000 (11:35 +0100)]
[HVM][TOOLS] Improve warnign message when trying to create
an HVM guest on a non-capable platform.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:30:09 +0000 (11:30 +0100)]
[HVM] Mov to/from CR8 must be gated on whether VLAPIC device is created.
If APIC=0 in VMX configuration file, VLAPIC(v) in
mov_from_cr()/mov_to_cr() will be NULL, so calling
vlapic_get_reg()/vlapic_set_reg()/vlapic_update_ppr()
would crash Xen.
Original patch from Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:11:54 +0000 (11:11 +0100)]
[HVM] Add RDMSR/WRMSR instruction emulation to VMXAssist decoder
AP of PAE SMP windows will use it to set NX bit in EFER.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 10:08:41 +0000 (11:08 +0100)]
[HVM] Add sub instruction support to HVM MMIO decoder.
This is needed for SMP PAE windows XP SP2.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 30 Sep 2006 09:49:08 +0000 (10:49 +0100)]
[HVM][SVM] Do not delay ExtInt event injection if RFLAGS.IF==0.
AMD-V does not require the delaying of interrupt injection if the guest
IF_FLAG disallows interrupts. Remove the code in svm_intr_assist()
that was checking the guest IF in eflags.
This patch fixes the problem with HVM Windows guests, with observing a
very slow timer countdown on the initial boot menu, when there is more
than one boot option. Kbd response in this same Windows boot menu is
also acceptably responsive with this patch.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Fri, 29 Sep 2006 18:12:15 +0000 (19:12 +0100)]
[NET] back: Loopback must copy foreign mappings.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Fri, 29 Sep 2006 14:40:35 +0000 (15:40 +0100)]
Merge.
Steven Smith [Fri, 29 Sep 2006 14:40:19 +0000 (15:40 +0100)]
[XEN][HVM] Arrange that we only consider sending a PV-on-HVM event channel
callback interrupt in vcpu 0. This avoids a race in SMP HVM domains
which could lead to interrupts never getting delivered. It is safe
because HVM domains always bind their event channels to vcpu 0.
Bug pointed out by Keir.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 13:55:57 +0000 (14:55 +0100)]
[BLKTAP] Find major number by searching sysfs
instead of reading /proc/devices.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Steven Smith [Fri, 29 Sep 2006 13:42:49 +0000 (14:42 +0100)]
Merge.
Steven Smith [Fri, 29 Sep 2006 13:42:04 +0000 (14:42 +0100)]
[XEN][HVM] Make sure that the interrupt which event channel events come in
on is level triggered rather than edge triggered, since it's a PCI device.
This is complicated by the possibility that another PCI device could be
on the same interrupt; the workaround is to have two irr registers
for the PIC and APIC, and have qemu and Xen generated interrupts go
into different ones.
This broke the alt_irq stuff. Fortunately, nobody uses that anymore, so
I've removed it.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 13:20:52 +0000 (14:20 +0100)]
[LINUX] Make evtchn device use a dynamic minor number.
Also update the code in tools to create the device node if udev fails.
The tools now read the sysfs system to find the minor number needed.
Original patch from Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 29 Sep 2006 10:57:06 +0000 (11:57 +0100)]
[XEN] Recompute shadows of PAE PSE l2es when needed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:50:51 +0000 (11:50 +0100)]
[HVM][SVM] Obtaining instruction address needs to mask to 32 bits
if not running in 64-bit mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alastair Tse [Fri, 29 Sep 2006 10:25:25 +0000 (11:25 +0100)]
[TOOLS] Fix xendomains init.d script DOG PIG confusion.
Fix typos in xendomains where we actually mean WDOG_PID.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=754
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:28:04 +0000 (11:28 +0100)]
[HVM] Disable VMX/SVM on auxiliary processors when shutting down an SMP system.
With Intel VT, VMXOFF needs to be executed before halting the
CPU. Without this fix Xen or Linux is unable to start up the CPU after
a kexec reboot.
Tested using x86_32 on a Pentium D 930.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:26:33 +0000 (11:26 +0100)]
[HVM][VMX] Clear vmxe when VMX is not enabled.
The current Xen code keeps X86_CR4_VMXE set even if VMXON has not been
executed. The stop_vmx() code assumes that it is possible to call
VMXOFF if X86_CR4_VMXE is set which is not always true. Calling VMXOFF
without VMXON results in an illegal opcode trap, and to avoid this condition
this patch makes sure that X86_CR4_VMXE is only set when VMXON has
been called.
Tested using x86_32 on a Pentium D 930.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:22:24 +0000 (11:22 +0100)]
[PYGRUB] Enable showing the cursor in pygrub when it's relevant to do so.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:21:02 +0000 (11:21 +0100)]
[HVM][SVM] 64-bit Windows HVM guests require MCE/MCA CPUID bits to be present.
This SVM patch removes "masking off" of these bits for AMD-V HVM guests.
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:17:29 +0000 (11:17 +0100)]
[BLKTAP] Remove unnecessary TLB flush from blktap driver.
blktap_poll is calling tlb_flush_all() in its main ring buffer polling
loop. This seems to be superfluous: the hypervisor should be
performing
any necessary tlb flushes on grant table operations performed by the
back-end. Even a simple memory barrier is unnecessary here as the
RING_PUSH_REQUESTS() call performs a wmb() anyway.
And tlb_flush_all() is not exported to modules, so this call prevents
blktap from building as a module. Just remove it.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:16:52 +0000 (11:16 +0100)]
[BLKTAP] Remove unnecessary timeout from tapdisk select() call.
tapdisk was using a 1msec select() timeout in its main event loop. On
timeout, the loop does nothing except repeat, so the timeout achieves
nothing; worse, on a machine with HZ set to less than 1000, a msec
timeout returns immediately, sending tapdisk into a 100%-CPU-
utilisation loop.
Simply remove the timeout entirely; everything still works fine, and
much more efficiently when idle.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:13:01 +0000 (11:13 +0100)]
Remove dead pdb code from tools directory.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:11:49 +0000 (11:11 +0100)]
[VMXASSIST] Fix data32/addr32 instruction decode issue.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 10:10:14 +0000 (11:10 +0100)]
[HVM] Clean up hvm_copy interface to be more like copy_to/from_user.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 09:30:18 +0000 (10:30 +0100)]
[HVM][VMX] Fix data copying in transition to/from vmxassist.
In vmx_assist, the copy for new/old context and vmx assist magic are
all using physical address, while hvm_copy will use the virtual address.
This may cause problem when guest jump directly from real mode to
paging mode.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:29:20 +0000 (09:29 +0100)]
[NET] back: Reset netfilter context in loopback receive path.
The issue is described in bugzilla report #746.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:23:18 +0000 (09:23 +0100)]
[BLK] front: Flush workqueues with no locks held. Operation can sleep.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 29 Sep 2006 08:14:28 +0000 (09:14 +0100)]
[XENBUS] Don't perform normal state-machine transitions and
notifications during shutdown. When rootfs goes away this can
cause the system to hang, as we notify userspace etc.
Instead we forcibly reset the state machine back to state Closed
if we are a frontend driver, to get the backend to release
resources. Necessary if we are going to kexec.
Signed-off-by: Keir Fraser <keir@xensource.com>
Andrew Warfield [Thu, 28 Sep 2006 20:44:00 +0000 (13:44 -0700)]
[BLKTAP] have udev create the device for blktap
This patch makes blktap Do The Right Thing(TM). It allows udev to
create the /dev/xen/blktap[0-9] devices.
It creates a sysfs class called "xen". This part may later be placed
someplace else, but currently blktap is the only user so it is placed in
the blktap code.
When blktap is initialized, a blktap0 sysfs class device is made. The
other devices blktapX (X > 0) are made when the BLKTAP_IOCTL_NEWINTF
ioctl is called. This way we don't flood the sysfs and /dev/xen with
unnecessary devices.
I added a rule in the xen-backend.rules to allow for udev to create the
blktap devices.
With this, we can really remove the code to search and create the
/dev/xen/blktap[0-9]*, but I'll leave it in for now. With the use of
udev, we really should remove that code as well as the code for creating
the evtchn device. udev works for both of these now. But that removal
will have to be in another patch.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:47:45 +0000 (12:47 -0700)]
[BLKTAP] have blktap use a dynamic major
blktap currently uses a hardcoded major of 254 for the device. This is
not robust in anyway and needs to be dynamic.
Note: it is better not to have the daemon create the node, and have udev
create it instead. But since the daemon currently creates the node
anyway, it is still the way this is done. That change needs to be made
at another time.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:12:59 +0000 (12:12 -0700)]
[BLKTAP][XEND] Fix blktap to work with a bootloader
If a Xen guest has a bootloader configured, then it will fail to start
on a blktap image. The problem is blkdev_uname_to_file, which cannot
parse the "tap:aio:$filename" image strings: it tries to split the
string apart at ":" and assign the result to a 2-tuple, and this
results in a python error if the split results in three or more
strings.
The fix is to split only at the first ":", and then to split again
if we detect "tap:" as the image type.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 19:03:01 +0000 (12:03 -0700)]
[BLKTAP] Fix SMP debugging assert failures in blktap
blktap is calling non-atomic kernel functions with irqs disabled, which
hits various kernel debug traps if those are enabled. The problem is
req_increase(), which takes the pending_free_lock.
This function is currently only ever called from module initialiation,
where it is impossible for it to race against anything else. Its
companion, req_decrease(), is not called at all.
Fix by removing the offending locking from req_increase() and, while
we're at it, remove req_decrease() entirely.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 18:52:17 +0000 (11:52 -0700)]
[BLKTAP] clean up blktap and remove private structure
This patch cleans up the blktap.c code to make it form to the Linux
coding style a little better.
It also removes the private data structure that is only used to store
the index of the tabfds descriptor. Instead the filp->private_data now
points to the descriptor itself.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Andrew Warfield [Thu, 28 Sep 2006 18:41:23 +0000 (11:41 -0700)]
[BLKTAP] Fix blktap oops on domain shutdown
When a domain shuts down with a blktap-backed block device open, it can
easily cause a dom0 oops. The XenbusStateClosing event can occur while
the tapdisk userland thread is still processing IO requests (eg.
readaheads) from the domU. But the xenbus state handler calls
tap_blkif_unmap(), unmapping the blkif->blk_ring.sring rin buffer, so
when the tapdisk thread next calls the BLKTAP_IOCTL_KICK_FE to return
the completion event to the FE via that ring buffer, it oopses.
This can be fixed simply by not calling tap_blkif_unmap() in this case;
the ring buffer will still be unmapped later on when the blkif is
destroyed by blktap_remove(), only then it will properly wait for the
blkif refcnt to reach zero before doing so.
Signed-off-by: Stephen Tweedie <sct@redhat.com>
Tim Deegan [Thu, 28 Sep 2006 16:10:54 +0000 (17:10 +0100)]
[XEN] Support lightweight shadow-translate PV guests, for paravirt-ops.
This is a modified subset of Michael Fetterman's shadow-translate work.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Thu, 28 Sep 2006 16:09:11 +0000 (17:09 +0100)]
[XEN] Fix interaction between tlbflush timestamp and shadow flags
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:45:49 +0000 (13:45 +0100)]
[NET] back: 4 loopbacks by default for dom0 (previously was 8).
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:44:24 +0000 (13:44 +0100)]
[XEN] Remove weak-extern definitions from symbols.c.
Instead we have an explicit set of dummy symbol
definitions for the inital link of the Xen image.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 12:20:58 +0000 (13:20 +0100)]
[NET] back: Create 0 loopbacks by default for non-domain-0.
Signed-off-by: Keir Fraser <keir@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:46:09 +0000 (12:46 +0100)]
[XM] Report proper ACMError(s) instead of silently exiting.
Remove try except blocks so that ACMError(s) are properly reported to
the user rather than silently fail.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:29:52 +0000 (12:29 +0100)]
[XM] Remove traceback printing from load/makepolicy.py.
Should pass the exception along to xm/main.py to handle properly like
the rest of the commands.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:23:21 +0000 (12:23 +0100)]
[XM] Fix stray quotes in usage message in getlabel.py
Fixed built-in function name conflict.
Raise correct exceptions for when option is invalid to be properly
reported by xm.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:16:11 +0000 (12:16 +0100)]
[XM] Fix error reporting for resources.py, remove duplicate try block.
Also fixed usage message to not include misspelling of the command.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 10:50:51 +0000 (11:50 +0100)]
[XM] Removed traceback printing for non ACMError exceptions
Removing try,except block as cfgbootpolicy should allow exceptions to
propagate instead of printing traceback to stdout.
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=778)
Changed usage of string.join, string.split when creating security
policy path name.
Signed-off-by: Alastair Tse <atse@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 11:03:10 +0000 (12:03 +0100)]
[XM] Set proper return code for exceptions in xm, catch ACMError.
Signed-off-by: Alastair Tse <atse@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 10:47:33 +0000 (11:47 +0100)]
[XEN] Fix i386 hypercall code to always create shadow
parameters. Arguments on stack can be clobbered by
callee, since it owns them. But we require this doesn't
happen when we create hypercall continuations. Hence the
need to copy.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 28 Sep 2006 10:25:15 +0000 (11:25 +0100)]
[HVM] Avoid mis-optimisation of the SVM/VMX exit handlers
by passing a *pointer* to the register state, instead of
'passing by value'.
This should fix the bugs resulting in display of
"trying to set reserved bit in EFER"
on the Xen console.
Signed-off-by: Keir Fraser <keir@xensource.com>
atse@norwich.uk.xensource.com [Thu, 28 Sep 2006 09:10:59 +0000 (10:10 +0100)]
There's a typo in create.py, which affects PV bootloaders (such as
domUloader and probably pygrub). Patch attached.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 16:49:22 +0000 (17:49 +0100)]
[VMXASSIST] Cast to pointer type via long to avoid compile
warnings/errors with latest gcc versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Wed, 27 Sep 2006 15:22:17 +0000 (16:22 +0100)]
[HVM] qemu should wait 10ms, rather than 100ms, between running its timers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:30:36 +0000 (14:30 +0100)]
[XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:28:26 +0000 (14:28 +0100)]
[XEN] gdbstub return value is used to determine whether or not
to continue execution.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:01:30 +0000 (14:01 +0100)]
[XM] Fix 'xm uptime' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 13:00:33 +0000 (14:00 +0100)]
[XM] Fix domain reported by 'xm sched-sedf'.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:59:48 +0000 (13:59 +0100)]
[XM] Fix 'xm rmlabel' command.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:58:46 +0000 (13:58 +0100)]
[XM] Reenable the '-h' option, disabled in changeset:11572.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 12:54:04 +0000 (13:54 +0100)]
[HVM] Fix stupid printf formatting error that breaks x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 09:17:03 +0000 (10:17 +0100)]
[HVM] Fix MSR read/write and add extra info when
write to MSR_EFER fails.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 27 Sep 2006 08:29:46 +0000 (09:29 +0100)]
[XEN] Fix x86_emulate and hvm-mmio-insn-len decoders
to properly add cs<<4 to eip only when guest is in real
mode (or vm86 mode).
Remove bogus test-and-fail from hvm-mmio-insn-len decoder.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Tue, 26 Sep 2006 18:50:07 +0000 (19:50 +0100)]
[HVM][VNC] Fix typo.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:47:35 +0000 (16:47 +0100)]
[HVM][VNC] Work around a bug in the newest version of xvncviewer which
could lead to the display locking up after it's been idle for a while.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:46:47 +0000 (16:46 +0100)]
[HVM][VNC] Make sure that qemu doesn't go into an infinite loop when
it receives certain invalid requests from the viewer.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Steven Smith [Tue, 26 Sep 2006 15:45:52 +0000 (16:45 +0100)]
[HVM] Make qemu_advance_timer do something sensible with timers which
aren't currently scheduled.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
kfraser@localhost.localdomain [Tue, 26 Sep 2006 13:01:38 +0000 (14:01 +0100)]
[HVM] Fix HLT with interrupts disabled. Only take down
the domain if no other VCPUs are online.
Signed-off-by: Keir Fraser <keir@xensource.com>
Emmanuel Ackaouy [Tue, 26 Sep 2006 11:17:51 +0000 (12:17 +0100)]
Adds support for the keyword 'all' to the vcpu-pin operation.
Using 'all' in place of a specific vcpu will apply the cpumask
to all vcpus in the domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Sep 2006 07:36:39 +0000 (08:36 +0100)]
[VMXASSIST] Small fix to virt-to-phys translation.
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Sep 2006 07:34:52 +0000 (08:34 +0100)]
Remove static forward declaration in gdbstub code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 17:19:30 +0000 (18:19 +0100)]
[VMXASSIST] Fix virt-to-phys translation routine.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 16:46:08 +0000 (17:46 +0100)]
[XEN] Simplify VMCS allocation (never bigger than a page).
Dynamically determine reserved bits in execution-control
fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 16:45:28 +0000 (17:45 +0100)]
[XEN] Small clean up.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Smith [Mon, 25 Sep 2006 16:27:18 +0000 (17:27 +0100)]
[HVM] Rate limit guest accesses to the qemu virtual serial port. This stops
grub's boot menu from hammering dom0.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Emmanuel Ackaouy [Mon, 25 Sep 2006 15:31:02 +0000 (16:31 +0100)]
Make dom0_vcpus_pin a platform independant option.
By default, it's off. When enabled on the command line, it
causes dom0's VCPUs to be pinned to their respective physical
CPUs at creation time. Once pinned, they can never be moved.
ALso cleanup VCPU initialization of scheduler parameters.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 13:11:22 +0000 (14:11 +0100)]
[XEN] Fix 11607 to avoid bignum aritmetic in assembly file.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 09:22:17 +0000 (10:22 +0100)]
[HVM] Use AMD's isntruction-length decoder for VMX as well as SVM
MMIO decode. The VMX-defined instruction-length info field is not
valid for use during most page faults. Hence we have to obtain the
instruction length the slow-and-stupid way.
This *will* go away when we throw away the wretched MMIO emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:36:11 +0000 (09:36 +0100)]
Consolidate the preferable use of a pragma with the feature detection
in the make script.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:31:11 +0000 (09:31 +0100)]
[XEN] Limit size of Xen heap to 2GB.
Avoids stub code created on the stack being unable to
reach targets in main Xen code via direct branches.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Mon, 25 Sep 2006 08:29:28 +0000 (09:29 +0100)]
[XEN] Use symbolic constants to determine segment limits.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Steven Smith [Mon, 25 Sep 2006 08:27:46 +0000 (09:27 +0100)]
Merge.